package com.bjb.vr.common.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * 文件管理服务
 *
 * @version 1.0.0
 * @author: HuJingBo
 * @time: 2022/4/14 11:30
 */
public interface FileOperationService {

    /**
     * 文件上传
     *
     * @param fileName
     * @return
     */
    String uploadFile(MultipartFile fileName) throws IOException;

    /**
     * 文件下载
     *
     * @param fileName
     * @return
     */
    String downloadFile(String fileName);

    /**
     * 文件下载
     *
     * @param fileName
     * @return
     */
    byte[] downloadFileBytes(String fileName);
}
